package com.example.demo.service.impl;

import com.example.demo.service.Animal;
import org.springframework.stereotype.Service;

@Service("dog2")
public class Dog implements Animal {

    @Override
    public void print() {
        System.out.println("this is Dog class....");
    }
}
